const state = {
    name: 'zhangsan'
}
const mutations = {
    insertname(state, name) {
        state.name = name
    }
}
const actions = {
    insertname(context, name) {
        context.commit('insertname', name)
    }
}

export default {
    namespaced: true,
    state,
    mutations,
    actions
}
